package com.dragon.modules.yuegou.model.product;

import com.dragon.modules.yuegou.entity.product.CoupTemplateSkuRefEntity;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 商品券模板与商品对应关系表模型类
 * 
 * @author pbuilder generated
 * @date 2021-05-11 16:55:17
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class CoupTemplateSkuRef extends CoupTemplateSkuRefEntity {

	@ApiModelProperty("标题")
	private String title;
	@ApiModelProperty("商品图片")
	private String img;
	@ApiModelProperty("核销时间")
	private String verificationTime;
	@ApiModelProperty("应付金额")
	private BigDecimal payableAmount;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public String getVerificationTime() {
		return verificationTime;
	}

	public void setVerificationTime(String verificationTime) {
		this.verificationTime = verificationTime;
	}

	public BigDecimal getPayableAmount() {
		return payableAmount;
	}

	public void setPayableAmount(BigDecimal payableAmount) {
		this.payableAmount = payableAmount;
	}

	/**
	 * 构造一个空商品券模板与商品对应关系表模型对象
	 */
	public CoupTemplateSkuRef(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个商品券模板与商品对应关系表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public CoupTemplateSkuRef(CoupTemplateSkuRefEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个商品券模板与商品对应关系表模型对象
	 * 
	 * @param other 其它对象
	 */
	public CoupTemplateSkuRef(CoupTemplateSkuRef other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置模板ID
	 * 
	 * @param id 模板ID
	 * @return 当前对象
	 */
    public CoupTemplateSkuRef id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getCoupTemplateId() {
    	return coupTemplateId;
    }

    /**
	 * 设置模板ID
	 * 
	 * @param coupTemplateId 模板ID
	 * @return 当前对象
	 */
    public CoupTemplateSkuRef coupTemplateId(String coupTemplateId) {
    	this.coupTemplateId = coupTemplateId;
    	return this;
    }

	@Override
	public String getSpuId() {
    	return spuId;
    }

    /**
	 * 设置spuId
	 * 
	 * @param spuId spuId
	 * @return 当前对象
	 */
    public CoupTemplateSkuRef spuId(String spuId) {
    	this.spuId = spuId;
    	return this;
    }

	@Override
	public String getSkuId() {
    	return skuId;
    }

    /**
	 * 设置SkuId
	 * 
	 * @param skuId SkuId
	 * @return 当前对象
	 */
    public CoupTemplateSkuRef skuId(String skuId) {
    	this.skuId = skuId;
    	return this;
    }

	@Override
	public Integer getQuantity() {
    	return quantity;
    }

    /**
	 * 设置数量
	 * 
	 * @param quantity 数量
	 * @return 当前对象
	 */
    public CoupTemplateSkuRef quantity(Integer quantity) {
    	this.quantity = quantity;
    	return this;
    }

	@Override
	public Integer getTotalQuantity() {
    	return totalQuantity;
    }

    /**
	 * 设置总数量
	 * 
	 * @param totalQuantity 总数量
	 * @return 当前对象
	 */
    public CoupTemplateSkuRef totalQuantity(Integer totalQuantity) {
    	this.totalQuantity = totalQuantity;
    	return this;
    }
}
